import mysql from '../common/mysql'
import Sequelize from 'sequelize'

const Role = mysql.define('Role', {
    id: {
        type: Sequelize.DataTypes.BIGINT.UNSIGNED,
        autoIncrement: true,
        primaryKey: true
    },
    role: {
        type: Sequelize.DataTypes.STRING,
        allowNull: false,
        defaultValue: ''
    },
    des: {
        type: Sequelize.DataTypes.STRING,
        allowNull: false,
        defaultValue: ''
    }
}, {
    tableName: 'role'
})

export default Role
